Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpy vararg leak #2105

Merged
merged 2 commits into from
Mar 21, 2022
Merged

jpy vararg leak #2105

merged 2 commits into from
Mar 21, 2022

Conversation

devinrsmith
Copy link
Member

DHC targeted version of jpy-consortium/jpy#22

@devinrsmith
Copy link
Member Author

QA script:

system=jpy.get_type("java.lang.System")
objects=jpy.get_type("java.util.Objects")
import gc
a=jpy.array("int", 100000000)
objects.hash(a)
a=None
gc.collect()
system.gc()

On a 4G VM, I was able to run this a few times and notice the heap grow, until it eventually ran out of memory. After this patch, I can qualitatively confirm the same leak does not appear to exist.

@devinrsmith devinrsmith marked this pull request as ready for review March 21, 2022 18:12
Copy link
Contributor

@jmao-denver jmao-denver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@devinrsmith devinrsmith merged commit 73cdcb8 into deephaven:main Mar 21, 2022
@devinrsmith devinrsmith deleted the jpy-vararg-leak branch March 21, 2022 18:43
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants